{include file="common/header"}
<div id="app" v-cloak>
	<el-curd
		:field="field"
		:search-date="false">
	</el-curd>
</div>
<script>
	new Vue({
		el: "#app",
		data() {
			return {
				field: [
					{
						prop: 'id',
						label: '主键',
						table: {
							sort: true,
						},
						form: {
							is: 'el-input',
						}
					},
					{
						prop: 'merchant_name',
						label: '商户名称',
						table: {
							sort: true,
						},
						form: {
							is: 'el-input',
							tips: '商户名称',
							rules: [
								{required: true, message: '请输入'},
							],
						}
					},
					{
						prop: 'rate',
						label: '分账比例',
						table: {
							sort: true,
						},
						form: {
							is: 'el-input',
							tips: '分账比例',
						}
					},
					{
						prop: 'image_url',
						label: 'd',
						table: {
							sort: true,
						},
						form: {
							is: 'el-file-upload',
						}
					},
					{
						prop: 'status',
						label: '状态',
						table: {
							sort: true,
						},
						form: {
							is: 'el-switch',
							default: 0,
						}
					},
				],
			}
		},
	})
</script>
{include file="common/footer"}